<html>
<head><meta charset="utf-8"><title>output file of compile_input · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/output.20file.20of.20compile_input.html">output file of compile_input</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="154271153"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/output%20file%20of%20compile_input/near/154271153" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> QuietMisdreavus <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/output.20file.20of.20compile_input.html#154271153">(Jan 03 2019 at 22:28)</a>:</h4>
<p>Is there a way to get the filename(s) created during <code>driver::compile_input</code>? rustdoc currently hardcodes the name of the file it tries to load when running a doctest, but this can be different if the doctest sets its own crate name</p>
<p>cf. <a href="https://github.com/rust-lang/rust/issues/57317" target="_blank" title="https://github.com/rust-lang/rust/issues/57317">https://github.com/rust-lang/rust/issues/57317</a> and <a href="https://github.com/rust-lang/rust/blob/c0bbc3927e28c22edefe6a1353b5ecc95ea9a104/src/librustdoc/test.rs#L332" target="_blank" title="https://github.com/rust-lang/rust/blob/c0bbc3927e28c22edefe6a1353b5ecc95ea9a104/src/librustdoc/test.rs#L332">https://github.com/rust-lang/rust/blob/c0bbc3927e28c22edefe6a1353b5ecc95ea9a104/src/librustdoc/test.rs#L332</a></p>



<a name="154271182"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/output%20file%20of%20compile_input/near/154271182" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> QuietMisdreavus <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/output.20file.20of.20compile_input.html#154271182">(Jan 03 2019 at 22:29)</a>:</h4>
<p>if we manually set the <code>output</code> parameter, would that override the automatic file name? (and also let us output into our temp directory?)</p>



<a name="154271502"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/output%20file%20of%20compile_input/near/154271502" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> QuietMisdreavus <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/output.20file.20of.20compile_input.html#154271502">(Jan 03 2019 at 22:35)</a>:</h4>
<p>hmm, judging from the implementation of <code>build_output_filenames</code>, <code>outdir</code> is ignored when <code>output</code> is set, so it needs to include <code>outdir</code></p>



<a name="154271512"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/output%20file%20of%20compile_input/near/154271512" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> QuietMisdreavus <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/output.20file.20of.20compile_input.html#154271512">(Jan 03 2019 at 22:35)</a>:</h4>
<p>probably not a problem</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>